package com.utilcase.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OrderStatus {
    PENDING("pending"),

    PROCESSING("processing"),

    COMPLETED("completed"),
    FAILED("failed"),
    CANCELLED("cancelled");

    @EnumValue // 标记数据库存的值是code
    private final String code;

}